package com.cloudwise.pollux.service.gateway.controller;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.alibaba.fastjson.JSON;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * @author sky
 * @date 2021/2/2 6:10 下午
 */
@RestController
public class TestController {
    private List<Object> routes;

    @GetMapping("routesList")
    @SentinelResource("routesList")
    public String routesList(){
        return JSON.toJSONString("routesList");
    }

}
